<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>首页 | 聚点团购 | ${tuan.name}</title>
<jsp:include page="home/style.jsp" />
</head>
<body>
<div class="topbg"></div>
<div class="container">
	<jsp:include page="home/top.jsp" />
    <div class="main">
    	<jsp:include page="home/left.jsp" />
        <div class="content">
        	<div class="today_tuan">
            	<div class="cont_top"></div>
                <div class="cont_body">
                	<div class="bd_left">
                    	<div class="img_show">
                    		<img src="<s:url value='%{tuan.headImg.iconImg}'/>"/>
                    	</div>
                        <p class="tuan_num"><span class="num">
                        	<s:property value="tuan.buyers.size"/>人</span>已购买,团购已成功，可继续购买！</p>
                        <ul class="price_list">
                        	<li><span class="orig_price linethr">${tuan.originalPrice}元</span><br />原价</li>
                            <li><span class="orig_price">${tuan.discount}折扣</span><br />折扣</li>
                            <li><span class="orig_price">${tuan.saved}元</span><br />节省</li>
                            <li><span class="orig_price">${remain}</span><br />剩余</li>
                        </ul>
                    </div>
                    <div class="bd_right">
                    	<p class="commodity">${tuan.name}</p>
                        <p class="com_introduce">${tuan.simpleDescribe}</p>
                        <div class="line"></div>
                        <div class="mleft40">
                            <div class="price"><span class="price_num">${tuan.currentPrice}</span>元</div>
                            <a href='<s:url value="/order/%{tuan.id}/buy"/>'><input type="button" class="buy" value=""/></a>
                   		</div>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="cont_down">
                	<span class="share_to">分享到：</span>
                	<ul class="share">
                        <li><a class="MQ" href="#">MSN/QQ</a></li>
    		   	    	<li><a class="kaixin" href="#" target=_blank>开心</a></li>
                        <li><a class="renren" href="#" target=_blank>人人</a></li>
                        <li><a class="douban" href="#" target=_blank>豆瓣</a></li>
                        <li><a class="sina" href="#" target=_blank>新浪微博</a></li>
                        <li><a class="email" href="#">邮件</a></li>
                	</ul>
                </div>
            </div>
            <div class="today_tuan">
            	<div class="cont_top"></div>
                <div class="cont_body">
                	<div class="bd_left">
                    	${tuan.detail}
                    </div>
                    <div class="map_right">
                    	<p class="tit">${tuan.seller}</p>
                        <p class="l20">${tuan.address}</p>
                        <p class="l20"><a class="link2" href="${tuan.website}" target="_blank">${tuan.website}</a></p>
                        <p class="tit mtop15">交通指南</p>
                        <p class="l20 wbr">${tuan.traffic}</p>
                         <div class="map">
                        	<img src="${tuan.mapPicLink}" />
                            <a href="${tuan.mapLink}"
                            	target="_blank" class="view_map link2">查看完整地图</a>
                    	</div>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="cont_down2"></div>
                <div class="link">
                	<ul>
                		<s:iterator value="#application.friendlinks" var="f">
	                       <li><a href="${website}" target="_blank" class="blue">${title}</a></li>
                		</s:iterator>
                    </ul>
                </div>
                <jsp:include page="home/footer.jsp" />
            </div>
        </div>
    </div>
</div>
<script type="text/javascript">init();</script>
</body>
</html>
